import request from "@/utils/request.js";

/**
 * 获取首页秒杀信息
 * 
 */
export function getSeckillIndexApi() {
	return request.get('index/seckill/info', {}, {
		noAuth: true
	});
}

/**
 * 秒杀时段信息
 * 
 */
export function getSeckillHeaderApi() {
	return request.get('Seckill/activity/time/info', {}, {
		noAuth: true
	});
}

/**
 * 秒杀商品列表
 * 
 */
export function getSeckillListApi(data) {
	return request.get('Seckill/product/list', data, {
		noAuth: true
	});
}

/**
 * 优惠券列表
 * 
 */
export function getCouponLstApi(data) {
	return request.get('coupon/voucher/collection/center', data, {
		noAuth: true
	});
}

/**
 * 优惠券列表
 * 
 */
export function couponReceiveApi(id) {
	return request.post(`coupon/receive/${id}`);
}

/**
 * 获取svip会员权益列表
 * 
 */
export function svipBenefitsListApi() {
	return request.get(`member/get/svip/benefits/list`);
}

/**
 * 获取svip会员中心信息
 * 
 */
export function svipInfoApi() {
	return request.get(`member/get/svip/info`);
}

/**
 * 生成购买svip会员订单
 * 
 */
export function svipOrderCreateApi(data) {
	return request.post(`member/svip/order/create`, data);
}

/**
 * svip会员订单购买记录
 * 
 */
export function svipOrderRecordApi() {
	return request.post(`member/svip/order/record`);
}